# example7_22.py

registry = []

def register(func):
    print('running register(%s)' % func)
    registry.append(func)
    return func

@register
def f1():
    print('running f1()')

if __name__ == '__main__':
    print('running main()')
    print('registry ->', registry)
    f1()
